calendar: Set GDK_SCROLL_MASK explicitly
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 23 Feb 2012 13:45:18 +0000 (14:45 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 1 Mar 2012 21:29:00 +0000 (16:29 -0500)
selecting for button press/release doesn't suffice anymore to
get scroll events.

gtk/gtkcalendar.c

index 819adfc3b6f0ad05f756fbdbfa6f82324e409750..8f548e4d0b30dfda90b75df7dde131edba22d986 100644 (file)
@@ -1681,6 +1681,7 @@ gtk_calendar_realize (GtkWidget *widget)
   attributes.wclass = GDK_INPUT_ONLY;
   attributes.window_type = GDK_WINDOW_CHILD;
   attributes.event_mask = (gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK
+                           | GDK_SCROLL_MASK
                            | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK
                            | GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK);